package com.ytzl.service.impl;

import com.ytzl.dao.Raindao;
import com.ytzl.pojo.Rains;
import com.ytzl.service.RainService;

import java.util.List;

public class RainServiceimpl implements RainService {

    private Raindao raindao;
    @Override
    public List<Rains> getAll() {
        return raindao.getAll();
    }

    @Override
    public int addRain(Rains rains) {
        return raindao.addRain(rains);
    }

    @Override
    public int delRain(int id) {
        return raindao.delRain(id);
    }
}
